<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html class="x-admin-sm">
    
    <head>
        <jsp:include page="../base_head.jsp"></jsp:include>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row">
                <form class="layui-form" enctype="multipart/form-data" 
                action="/big-birds/reply/reply_update.do" method="post">
                	<div class="layui-form-item">
                        <label class="layui-form-label">
                            <span class="x-red">*</span>ID
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="id" name="id" required="" autocomplete="off" 
                            class="layui-input" readonly="readonly" value="${requestScope.rInfo.reply_id }">
                        </div>
                    </div>
					<div>
						<textarea name="textarea" class="layui-textarea" id="textarea" style="display: none">  
						  	${requestScope.rInfo.content }
						</textarea>
					</div>
                    <div class="layui-form-item">
                        <label for="L_repass" class="layui-form-label"></label>
                        <button type="submit" class="layui-btn" lay-filter="add" lay-submit="">修改</button></div>
                </form>
            </div>
        </div>
        <script src="${proname}/js/jquery.min.js"></script>
        <script>
	        layui.use('layedit', function(){
	        	  var layedit = layui.layedit
	        	  ,$ = layui.jquery;
	        	  
	        	  //构建一个默认的编辑器
	        	  var index = layedit.build('textarea');
	        	  
	        	  //编辑器外部操作
	        	  var active = {
	        	    content: function(){
	        	      alert(layedit.getContent(index)); //获取编辑器内容
	        	    }
	        	    ,text: function(){
	        	      alert(layedit.getText(index)); //获取编辑器纯文本内容
	        	    }
	        	    ,selection: function(){
	        	      alert(layedit.getSelection(index));
	        	    }
	        	  };
	        	  
	        	  $('.site-demo-layedit').on('click', function(){
	        	    var type = $(this).data('type');
	        	    active[type] ? active[type].call(this) : '';
	        	  });
	        });
	        
	        
	     
        </script>
       
    </body>

</html>